
<form class="layui-form" lay-filter="layuiadmin-form-messageadmin" style="padding: 20px 0 0 0;">
    <script type="text/html" template>
        <input type="hidden" name="id" value="{{ d.params.id }}">
    </script>
    <div class="layui-form-item">
        <label class="layui-form-label">标题</label>
        <div class="layui-input-block">
            <script type="text/html" template>
                <input type="text" name="title" value="{{ d.params.title || '' }}" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">正文</label>
        <div class="layui-input-block">
            <script type="text/html" template lay-done="layui.data.sendParams(d.params)">
                <div id="message_editor" style="height: 600px"></div>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-message-front-submit" value="确认" class="layui-btn">
        </div>
    </div>
</form>

<script>
    layui.use('msg', layui.factory('msg')).use(['admin', 'form', 'upload'], function () {
        var $ = layui.$
            , form = layui.form
            , setter = layui.setter
            , table = layui.table
            , upload = layui.upload;


    })
</script>